<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body>
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_lp_01')?></cite></a>
        <a href="javascript:;"><?=L('tpl_lp_02')?></a>
        <a href="<?=site_url('label/page')?>"><?=L('tpl_lp_03')?></a>
    </span>
    <form class="layui-form" action="<?=site_url('label/page_del')?>" method="post">
        <table class="layui-table">
            <colgroup>
                <col width="40">
                <col></col>
                <col></col>
                <col></col>
                <col></col>
                <col></col>
                <col></col>
            </colgroup>
            <thead>
            <tr>
            <th><?=L('tpl_lp_04')?></th>
            <th class="phide"><?=L('tpl_lp_05')?></th>
            <th><?=L('tpl_lp_06')?></th>
            <th class="phide"><?=L('tpl_lp_07')?></th>
            <th class="phide"><?=L('tpl_lp_08')?></th>
            <th ><?=L('tpl_lp_09')?></th>
            <th><?=L('tpl_lp_10')?></th>
            <th class="phide"><?=L('tpl_lp_11')?></th>
            <th><?=L('tpl_lp_12')?></th>
            </tr>
            </thead>
            <tbody>
                <?php
                if(empty($label)) echo '<tr><td align="center" height="50" colspan="9">'.L('tpl_lp_13').'</td></tr>';
                foreach ($label as $row) {
                    $ms = ($row->sid==1)?'<font class="colorr">'.L('tpl_lp_14').'</font>':'<font class="colorl">'.L('tpl_lp_15').'</font>';
                    if($row->sid==1){
                        $path=".".$row->url;
                        if(!file_exists($path)){
                            $html='<a id="html_'.$row->id.'" onclick="cscms.ok_no(\''.site_url('label/page_html').'\','.$row->id.',0,\'html_\',\'label\')" href="javascript:;" title="'.L('tpl_lp_16').'" ><i class="fa fa-close colorr"></i></a>';
                        }else{
							$html='<a id="html_'.$row->id.'" onclick="cscms.ok_no(\''.site_url('label/page_html').'\','.$row->id.',0,\'html_\',\'label\')" href="javascript:;" title="'.L('tpl_lp_16').'" ><i class="fa fa-check colorl"></i></a>';
                        }
                    }else{
                        $html='<i title="'.L('tpl_lp_17').'" class="fa fa-check colorl"></i>';
                    }
                    echo '
                    <tr id="row_'.$row->id.'">
                    <td><input class="xuan" name="id['.$row->id.']" type="checkbox" value="'.$row->id.'" /></td>
                    <td class="phide">'.$row->id.'</td>
                    <td>{cscmspage:'.$row->name.'}</td>
                    <td class="phide">'.$row->neir.'</td>
                    <td class="phide"><a href="'.$row->url.'" target="_blank">'.$row->url.'</a></td>
                    <td>'.$ms.'</td>
                    <td style="text-align: center;">'.$html.'</td>
                    <td class="phide">'.date('Y-m-d H:i:s',$row->addtime).'</td>
                    <td class="basedb-more"><a class="layui-btn layui-btn-mini" href="javascript:cscms.get_open(\''.site_url('label/page_edit').'?id='.$row->id.'\',\''.L('tpl_lp_18').'\',\'100%\',\'100%\')">'.L('tpl_lp_19').'</a><a class="layui-btn layui-btn-danger layui-btn-mini" href="javascript:cscms.del_one(\''.site_url('label/page_del').'\','.$row->id.');">'.L('tpl_lp_20').'</a></td>
                    </tr> ';
                }
                ?>
            </tbody>
        </table>
        <div class="more_func">
            <a class="layui-btn layui-btn-primary layui-btn-small" href="javascript:cscms.select_all();"><i class="fa fa-check colorl" ></i><?=L('tpl_lp_21')?></a><a class="layui-btn layui-btn-primary layui-btn-small" lay-submit lay-filter="del_pl"><i class="fa fa-close " style="color: red" ></i><?=L('tpl_lp_22')?></a><a class="layui-btn layui-btn-primary layui-btn-small" href="javascript:cscms.get_open('<?=site_url('label/page_add')?>','<?=L('tpl_lp_23')?>','100%','100%');"><i class="fa fa-plus" style="color: #1E9FFF" ></i><?=L('tpl_lp_23')?></a>
        </div>
    </form>
    <div id="page">
        <div class="data_nums phide"><?=$page_data?></div>
        <div class="data_page"><?=$page_list?></div>
    </div>
</div>
<script type="text/javascript">
    cscms.init();
</script>
</body>
</html>